{% extends 'layout/default.html' %}

{% block title %}用户登录{% endblock %}

{% block main_body %}
    <h1><small>用户登录</small></h1>
    <div class="span12" style="margin-top: 40px;">
        <form id="loginform" class="form-horizontal" action="/signin" method="post">
            <div class="control-group">
                <label class="control-label" for="mobile">手机号码：</label>
                <div class="controls">
                    <input type="text" id="mobile" name="mobile" value="{{ f.mobile }}">
                    {% if errormsg.get('mobile') %}<span class="label label-important">{{ errormsg.get('mobile') }}</span>{% endif %}
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label" for="password">密码：</label>
                <div class="controls">
                    <input type="password" id="password" placeholder="" name="password">
                    {% if errormsg.get('password') %}<span class="label label-important">{{ errormsg.get('password') }}</span>{% endif %}		            
                </div>
            </div>
            
            <div class="control-group">
                <div class="controls">
                    <button id="submit" name="submit" type="submit" class="btn btn-success" style="width: 80px;">登录</button>
                    {% if errormsg.get('submit') %}<span class="label label-important">{{ errormsg.get('submit') }}</span>{% endif %}
                </div>
            </div>
        </form>
    </div>
{% endblock %}


